all: test
test: test.o slave_test.o
	python3 xlink.py sw5g++ -mhybrid $^ -o $@
test.o: test.cpp tuple_spawn.hpp dma_funcs.hpp
	sw5g++ -mhost -msimd -c $< -o $@ -std=gnu++11
slave_test.o: slave_test.cpp tuple_spawn.hpp dma_funcs.hpp
	sw5g++ -mslave -msimd -c $< -o $@ -std=gnu++11
.PHONY:
clean:
	rm test test.o slave_test.o